package cn.zc.curriculum.service.service;

import cn.zc.curriculum.entity.CurriculumCourseware;
import cn.zc.curriculum.entity.Dto.CurriculumCoursewareDto;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程课件 服务类
 * </p>
 *
 * @author keno
 * @since 2022-02-17
 */
public interface CurriculumCoursewareService extends IService<CurriculumCourseware> {

    /**
     * 创建课件
     * @param curriculumCoursewareDto
     */
    void createCurriculumCourseware(CurriculumCoursewareDto curriculumCoursewareDto);

    /**
     * 通过目录id查询课件
     * @param menuId
     * @return
     */
    List<CurriculumCoursewareDto> findCurriculumCoursewareByMenu(String menuId);


    /**
     * 通过id修改课件
     * @param curriculumCoursewareDto
     */
    void updateCurriculumCoursewareByMenu(CurriculumCoursewareDto curriculumCoursewareDto);

    /**
     * 删除课件
     * @param id
     */
    void deleteCurriculumCoursewareByMenu(String id);
}
